package ecom.appcode.business;

import ecom.appcode.common.daobean.OrderDaoBean;
import ecom.appcode.dao.daointerface.OrderDao;
import ecom.appcode.dao.daointerface.OrderDaoImpl;

public class OrderLogicImpl implements OrderLogic {

    /** Insert Order */
    public boolean insertOrder(String orderDate, String email, String shipDate, boolean transacStatus, int paymentID,
            String paymentDate, String note) {
        OrderDao order = new OrderDaoImpl();
        boolean result = order.insertOrder(orderDate, email, shipDate, transacStatus, paymentID, paymentDate, note);
        return result;
    }
    
    /** Insert Order */
    public OrderDaoBean insertOrderShoes(int orderID,String orderDate, String email, String shipDate, boolean transacStatus, int paymentID,
            String paymentDate, String note){
        OrderDao order = new OrderDaoImpl();
        OrderDaoBean orderBean = order.insertOrderShoes(orderID, orderDate, email, shipDate, transacStatus, paymentID, paymentDate, note);
        return orderBean;
    }
    
    /** Update Status */
    public boolean updateOrderStatus(boolean status,int orderID) {
        OrderDao order = new OrderDaoImpl();
        boolean result = order.updateOrderStatus(status, orderID);
        return result;
    }
}
